package com.itchen.mapper;

import com.itchen.pojo.City;
import com.itchen.pojo.Province;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author げっしょく
 * @date 2021/9/6
 */
public interface provinceMapper {

    @Select("select * from province")
    List<Province> selectAll();

    @Select("select * from city where fatherID = #{id}")
    List<City> selectCity(@Param("id")int id);
}
